import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.sensor.d.ts',
  content: "/*\n * Copyright (c) 2021 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit SensorServiceKit\n */\nimport { AsyncCallback, Callback } from './@ohos.base';\n/**\n * This module provides the capability to subscribe to sensor data.\n * @namespace sensor\n * @syscap SystemCapability.Sensors.Sensor\n * @since 8\n */\n/**\n * This module provides the capability to subscribe to sensor data.\n * @namespace sensor\n * @syscap SystemCapability.Sensors.Sensor\n * @atomicservice\n * @since 11\n */\ndeclare namespace sensor {\n    /**\n     * Enum for obtain the type of sensor.\n     * @enum { number }\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    /**\n     * Enum for obtain the type of sensor.\n     * @enum { number }\n     * @syscap SystemCapability.Sensors.Sensor\n     * @atomicservice\n     * @since 11\n     */\n    enum SensorId {\n        /**\n         * Acceleration sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        /**\n         * Acceleration sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @atomicservice\n         * @since 11\n         */\n        ACCELEROMETER = 1,\n        /**\n         * Gyroscope sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        /**\n         * Gyroscope sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @atomicservice\n         * @since 11\n         */\n        GYROSCOPE = 2,\n        /**\n         * Ambient light sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        AMBIENT_LIGHT = 5,\n        /**\n         * Magnetic field sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        MAGNETIC_FIELD = 6,\n        /**\n         * Barometric pressure sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        BAROMETER = 8,\n        /**\n         * Hall effect sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        HALL = 10,\n        /**\n         * Proximity sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        PROXIMITY = 12,\n        /**\n         * Humidity sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        HUMIDITY = 13,\n        /**\n         * Orientation sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        /**\n         * Orientation sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @atomicservice\n         * @since 11\n         */\n        ORIENTATION = 256,\n        /**\n         * Gravity sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        GRAVITY = 257,\n        /**\n         * Linear acceleration sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        LINEAR_ACCELEROMETER = 258,\n        /**\n         * Rotation vector sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        ROTATION_VECTOR = 259,\n        /**\n         * Ambient temperature sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        AMBIENT_TEMPERATURE = 260,\n        /**\n         * Uncalibrated magnetic field sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        MAGNETIC_FIELD_UNCALIBRATED = 261,\n        /**\n         * Uncalibrated gyroscope sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        GYROSCOPE_UNCALIBRATED = 263,\n        /**\n         * Significant motion sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        SIGNIFICANT_MOTION = 264,\n        /**\n         * Pedometer detection sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        PEDOMETER_DETECTION = 265,\n        /**\n         * Pedometer sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        PEDOMETER = 266,\n        /**\n         * Heart rate sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        HEART_RATE = 278,\n        /**\n         * Wear detection sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        WEAR_DETECTION = 280,\n        /**\n         * Uncalibrated acceleration sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        ACCELEROMETER_UNCALIBRATED = 281\n    }\n    /**\n     * Subscribe to accelerometer sensor data.\n     * @permission ohos.permission.ACCELEROMETER\n     * @param { SensorId.ACCELEROMETER } type - Indicate the sensor type to listen for, {@code SensorId.ACCELEROMETER}.\n     * @param { Callback<AccelerometerResponse> } callback - callback accelerometer data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    /**\n     * Subscribe to accelerometer sensor data.\n     * @permission ohos.permission.ACCELEROMETER\n     * @param { SensorId.ACCELEROMETER } type - Indicate the sensor type to listen for, {@code SensorId.ACCELEROMETER}.\n     * @param { Callback<AccelerometerResponse> } callback - callback accelerometer data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @atomicservice\n     * @since 11\n     */\n    function on(type: SensorId.ACCELEROMETER, callback: Callback<AccelerometerResponse>, options?: Options): void;\n    /**\n     * Subscribe to uncalibrated accelerometer sensor data.\n     * @permission ohos.permission.ACCELEROMETER\n     * @param { SensorId.ACCELEROMETER_UNCALIBRATED } type - Indicate the sensor type to listen for,{@code SensorId.ACCELEROMETER_UNCALIBRATED}.\n     * @param { Callback<AccelerometerUncalibratedResponse> } callback - callback uncalibrated accelerometer data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function on(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback<AccelerometerUncalibratedResponse>, options?: Options): void;\n    /**\n     * Subscribe to ambient light sensor data.\n     * @param { SensorId.AMBIENT_LIGHT } type - Indicate the sensor type to listen for, {@code SensorId.AMBIENT_LIGHT}.\n     * @param { Callback<LightResponse> } callback - callback ambient data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function on(type: SensorId.AMBIENT_LIGHT, callback: Callback<LightResponse>, options?: Options): void;\n    /**\n     * Subscribe to ambient temperature sensor data.\n     * @param { SensorId.AMBIENT_TEMPERATURE } type - Indicate the sensor type to listen for, {@code SensorId.AMBIENT_TEMPERATURE}.\n     * @param { Callback<AmbientTemperatureResponse> } callback - callback temperature data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function on(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback<AmbientTemperatureResponse>, options?: Options): void;\n    /**\n     * Subscribe to barometer sensor data.\n     * @param { SensorId.BAROMETER } type - Indicate the sensor type to listen for, {@code SensorId.BAROMETER}.\n     * @param { Callback<BarometerResponse> } callback - callback barometer data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function on(type: SensorId.BAROMETER, callback: Callback<BarometerResponse>, options?: Options): void;\n    /**\n     * Subscribe to gravity sensor data.\n     * @param { SensorId.GRAVITY } type - Indicate the sensor type to listen for, {@code SensorId.GRAVITY}.\n     * @param { Callback<GravityResponse> } callback - callback gravity data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function on(type: SensorId.GRAVITY, callback: Callback<GravityResponse>, options?: Options): void;\n    /**\n     * Subscribe to gyroscope sensor data.\n     * @permission ohos.permission.GYROSCOPE\n     * @param { SensorId.GYROSCOPE } type - Indicate the sensor type to listen for, {@code SensorId.GYROSCOPE}.\n     * @param { Callback<GyroscopeResponse> } callback - callback gyroscope data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    /**\n     * Subscribe to gyroscope sensor data.\n     * @permission ohos.permission.GYROSCOPE\n     * @param { SensorId.GYROSCOPE } type - Indicate the sensor type to listen for, {@code SensorId.GYROSCOPE}.\n     * @param { Callback<GyroscopeResponse> } callback - callback gyroscope data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @atomicservice\n     * @since 11\n     */\n    function on(type: SensorId.GYROSCOPE, callback: Callback<GyroscopeResponse>, options?: Options): void;\n    /**\n     * Subscribe to uncalibrated gyroscope sensor data.\n     * @permission ohos.permission.GYROSCOPE\n     * @param { SensorId.GYROSCOPE_UNCALIBRATED } type - Indicate the sensor type to listen for, {@code SensorId.GYROSCOPE_UNCALIBRATED}.\n     * @param { Callback<GyroscopeUncalibratedResponse> } callback - callback uncalibrated gyroscope data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function on(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback<GyroscopeUncalibratedResponse>, options?: Options): void;\n    /**\n     * Subscribe to hall sensor data.\n     * @param { SensorId.HALL } type - Indicate the sensor type to listen for, {@code SensorId.HALL}.\n     * @param { Callback<HallResponse> } callback - callback uncalibrated gyroscope data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function on(type: SensorId.HALL, callback: Callback<HallResponse>, options?: Options): void;\n    /**\n     * Subscribe to heart rate sensor data.\n     * @permission ohos.permission.READ_HEALTH_DATA\n     * @param { SensorId.HEART_RATE } type - Indicate the sensor type to listen for, {@code SensorId.HEART_RATE}.\n     * @param { Callback<HeartRateResponse> } callback - callback heart rate data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function on(type: SensorId.HEART_RATE, callback: Callback<HeartRateResponse>, options?: Options): void;\n    /**\n     * Subscribe to humidity sensor data.\n     * @param { SensorId.HUMIDITY } type - Indicate the sensor type to listen for, {@code SensorId.HUMIDITY}.\n     * @param { Callback<HumidityResponse> } callback - callback humidity data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function on(type: SensorId.HUMIDITY, callback: Callback<HumidityResponse>, options?: Options): void;\n    /**\n     * Subscribe to linear acceleration sensor data.\n     * @permission ohos.permission.ACCELEROMETER\n     * @param { SensorId.LINEAR_ACCELEROMETER } type - Indicate the sensor type to listen for, {@code SensorId.LINEAR_ACCELEROMETER}.\n     * @param { Callback<LinearAccelerometerResponse> } callback - callback linear acceleration data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function on(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback<LinearAccelerometerResponse>, options?: Options): void;\n    /**\n     * Subscribe to magnetic field sensor data.\n     * @param { SensorId.MAGNETIC_FIELD } type - Indicate the sensor type to listen for, {@code SensorId.MAGNETIC_FIELD}.\n     * @param { Callback<MagneticFieldResponse> } callback - callback magnetic field data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function on(type: SensorId.MAGNETIC_FIELD, callback: Callback<MagneticFieldResponse>, options?: Options): void;\n    /**\n     * Subscribe to uncalibrated magnetic field sensor data.\n     * @param { SensorId.MAGNETIC_FIELD_UNCALIBRATED } type - Indicate the sensor type to listen for,\n     *        {@code SensorId.MAGNETIC_FIELD_UNCALIBRATED}.\n     * @param { Callback<MagneticFieldUncalibratedResponse> } callback - callback uncalibrated magnetic field data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function on(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback<MagneticFieldUncalibratedResponse>, options?: Options): void;\n    /**\n     * Subscribe to orientation sensor data.\n     * @param { SensorId.ORIENTATION } type - Indicate the sensor type to listen for, {@code SensorId.ORIENTATION}.\n     * @param { Callback<OrientationResponse> } callback - callback orientation data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    /**\n     * Subscribe to orientation sensor data.\n     * @param { SensorId.ORIENTATION } type - Indicate the sensor type to listen for, {@code SensorId.ORIENTATION}.\n     * @param { Callback<OrientationResponse> } callback - callback orientation data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @atomicservice\n     * @since 11\n     */\n    function on(type: SensorId.ORIENTATION, callback: Callback<OrientationResponse>, options?: Options): void;\n    /**\n     * Subscribe to pedometer sensor data.\n     * @permission ohos.permission.ACTIVITY_MOTION\n     * @param { SensorId.PEDOMETER } type - Indicate the sensor type to listen for, {@code SensorId.PEDOMETER}.\n     * @param { Callback<PedometerResponse> } callback - callback pedometer data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function on(type: SensorId.PEDOMETER, callback: Callback<PedometerResponse>, options?: Options): void;\n    /**\n     * Subscribe to pedometer detection sensor data.\n     * @permission ohos.permission.ACTIVITY_MOTION\n     * @param { SensorId.PEDOMETER_DETECTION } type - Indicate the sensor type to listen for, {@code SensorId.PEDOMETER_DETECTION}.\n     * @param { Callback<PedometerDetectionResponse> } callback - callback pedometer detection data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function on(type: SensorId.PEDOMETER_DETECTION, callback: Callback<PedometerDetectionResponse>, options?: Options): void;\n    /**\n     * Subscribe to proximity sensor data.\n     * @param { SensorId.PROXIMITY } type - Indicate the sensor type to listen for, {@code SensorId.PROXIMITY}.\n     * @param { Callback<ProximityResponse> } callback - callback proximity data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function on(type: SensorId.PROXIMITY, callback: Callback<ProximityResponse>, options?: Options): void;\n    /**\n     * Subscribe to rotation vector sensor data.\n     * @param { SensorId.ROTATION_VECTOR } type - Indicate the sensor type to listen for, {@code SensorId.ROTATION_VECTOR}.\n     * @param { Callback<RotationVectorResponse> } callback - callback rotation vector data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function on(type: SensorId.ROTATION_VECTOR, callback: Callback<RotationVectorResponse>, options?: Options): void;\n    /**\n     * Subscribe to significant motion sensor data.\n     * @param { SensorId.SIGNIFICANT_MOTION } type - Indicate the sensor type to listen for, {@code SensorId.SIGNIFICANT_MOTION}.\n     * @param { Callback<SignificantMotionResponse> } callback - callback significant motion data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function on(type: SensorId.SIGNIFICANT_MOTION, callback: Callback<SignificantMotionResponse>, options?: Options): void;\n    /**\n     * Subscribe to wear detection sensor data.\n     * @param { SensorId.WEAR_DETECTION } type - Indicate the sensor type to listen for, {@code SensorId.WEAR_DETECTION}.\n     * @param { Callback<WearDetectionResponse> } callback - callback wear detection data.\n     * @param { Options } [options] - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function on(type: SensorId.WEAR_DETECTION, callback: Callback<WearDetectionResponse>, options?: Options): void;\n    /**\n     * Subscribe to accelerometer sensor data once.\n     * @permission ohos.permission.ACCELEROMETER\n     * @param { SensorId.ACCELEROMETER } type - Indicate the sensor type to listen for, {@code SensorId.ACCELEROMETER}.\n     * @param { Callback<AccelerometerResponse> } callback - callback accelerometer data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.ACCELEROMETER, callback: Callback<AccelerometerResponse>): void;\n    /**\n     * Subscribe to uncalibrated accelerometer sensor data once.\n     * @permission ohos.permission.ACCELEROMETER\n     * @param { SensorId.ACCELEROMETER_UNCALIBRATED } type - Indicate the sensor type to listen for,{@code SensorId.ACCELEROMETER_UNCALIBRATED}.\n     * @param { Callback<AccelerometerUncalibratedResponse> } callback - callback uncalibrated accelerometer data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback: Callback<AccelerometerUncalibratedResponse>): void;\n    /**\n     * Subscribe to ambient light sensor data once.\n     * @param { SensorId.AMBIENT_LIGHT } type - Indicate the sensor type to listen for, {@code SensorId.AMBIENT_LIGHT}.\n     * @param { Callback<LightResponse> } callback - callback ambient data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.AMBIENT_LIGHT, callback: Callback<LightResponse>): void;\n    /**\n     * Subscribe to ambient temperature sensor data once.\n     * @param { SensorId.AMBIENT_TEMPERATURE } type - Indicate the sensor type to listen for, {@code SensorId.AMBIENT_TEMPERATURE}.\n     * @param { Callback<AmbientTemperatureResponse> } callback - callback temperature data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.AMBIENT_TEMPERATURE, callback: Callback<AmbientTemperatureResponse>): void;\n    /**\n     * Subscribe to barometer sensor data once.\n     * @param { SensorId.BAROMETER } type - Indicate the sensor type to listen for, {@code SensorId.BAROMETER}.\n     * @param { Callback<BarometerResponse> } callback - callback barometer data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.BAROMETER, callback: Callback<BarometerResponse>): void;\n    /**\n     * Subscribe to gravity sensor data once.\n     * @param { SensorId.GRAVITY } type - Indicate the sensor type to listen for, {@code SensorId.GRAVITY}.\n     * @param { Callback<GravityResponse> } callback - callback gravity data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.GRAVITY, callback: Callback<GravityResponse>): void;\n    /**\n     * Subscribe to gyroscope sensor data once.\n     * @permission ohos.permission.GYROSCOPE\n     * @param { SensorId.GYROSCOPE } type - Indicate the sensor type to listen for, {@code SensorId.GYROSCOPE}.\n     * @param { Callback<GyroscopeResponse> } callback - callback gyroscope data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.GYROSCOPE, callback: Callback<GyroscopeResponse>): void;\n    /**\n     * Subscribe to uncalibrated gyroscope sensor data once.\n     * @permission ohos.permission.GYROSCOPE\n     * @param { SensorId.GYROSCOPE_UNCALIBRATED } type - Indicate the sensor type to listen for,{@code SensorId.GYROSCOPE_UNCALIBRATED}.\n     * @param { Callback<GyroscopeUncalibratedResponse> } callback - callback uncalibrated gyroscope data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.GYROSCOPE_UNCALIBRATED, callback: Callback<GyroscopeUncalibratedResponse>): void;\n    /**\n     * Subscribe to hall sensor data once.\n     * @param { SensorId.HALL } type - Indicate the sensor type to listen for, {@code SensorId.HALL}.\n     * @param { Callback<HallResponse> } callback - callback uncalibrated gyroscope data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.HALL, callback: Callback<HallResponse>): void;\n    /**\n     * Subscribe to heart rate sensor data once.\n     * @permission ohos.permission.READ_HEALTH_DATA\n     * @param { SensorId.HEART_RATE } type - Indicate the sensor type to listen for, {@code SensorId.HEART_RATE}.\n     * @param { Callback<HeartRateResponse> } callback - callback heart rate data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.HEART_RATE, callback: Callback<HeartRateResponse>): void;\n    /**\n     * Subscribe to humidity sensor data once.\n     * @param { SensorId.HUMIDITY } type - Indicate the sensor type to listen for, {@code SensorId.HUMIDITY}.\n     * @param { Callback<HumidityResponse> } callback - callback humidity data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.HUMIDITY, callback: Callback<HumidityResponse>): void;\n    /**\n     * Subscribe to linear acceleration sensor data once.\n     * @permission ohos.permission.ACCELEROMETER\n     * @param { SensorId.LINEAR_ACCELEROMETER } type - Indicate the sensor type to listen for, {@code SensorId.LINEAR_ACCELEROMETER}.\n     * @param { Callback<LinearAccelerometerResponse> } callback - callback linear acceleration data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.LINEAR_ACCELEROMETER, callback: Callback<LinearAccelerometerResponse>): void;\n    /**\n     * Subscribe to magnetic field sensor data once.\n     * @param { SensorId.MAGNETIC_FIELD } type - Indicate the sensor type to listen for, {@code SensorId.MAGNETIC_FIELD}.\n     * @param { Callback<MagneticFieldResponse> } callback - callback magnetic field data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.MAGNETIC_FIELD, callback: Callback<MagneticFieldResponse>): void;\n    /**\n     * Subscribe to uncalibrated magnetic field sensor data once.\n     * @param { SensorId.MAGNETIC_FIELD_UNCALIBRATED } type - Indicate the sensor type to listen for,\n     *        {@code SensorId.MAGNETIC_FIELD_UNCALIBRATED}.\n     * @param { Callback<MagneticFieldUncalibratedResponse> } callback - callback uncalibrated magnetic field data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback: Callback<MagneticFieldUncalibratedResponse>): void;\n    /**\n     * Subscribe to orientation sensor data once.\n     * @param { SensorId.ORIENTATION } type - Indicate the sensor type to listen for, {@code SensorId.ORIENTATION}.\n     * @param { Callback<OrientationResponse> } callback - callback orientation data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.ORIENTATION, callback: Callback<OrientationResponse>): void;\n    /**\n     * Subscribe to pedometer sensor data once.\n     * @permission ohos.permission.ACTIVITY_MOTION\n     * @param { SensorId.PEDOMETER } type - Indicate the sensor type to listen for, {@code SensorId.PEDOMETER}.\n     * @param { Callback<PedometerResponse> } callback - callback pedometer data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.PEDOMETER, callback: Callback<PedometerResponse>): void;\n    /**\n     * Subscribe to pedometer detection sensor data once.\n     * @permission ohos.permission.ACTIVITY_MOTION\n     * @param { SensorId.PEDOMETER_DETECTION } type - Indicate the sensor type to listen for, {@code SensorId.PEDOMETER_DETECTION}.\n     * @param { Callback<PedometerDetectionResponse> } callback - callback pedometer detection data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.PEDOMETER_DETECTION, callback: Callback<PedometerDetectionResponse>): void;\n    /**\n     * Subscribe to proximity sensor data once.\n     * @param { SensorId.PROXIMITY } type - Indicate the sensor type to listen for, {@code SensorId.PROXIMITY}.\n     * @param { Callback<ProximityResponse> } callback - callback proximity data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.PROXIMITY, callback: Callback<ProximityResponse>): void;\n    /**\n     * Subscribe to rotation vector sensor data once.\n     * @param { SensorId.ROTATION_VECTOR } type - Indicate the sensor type to listen for, {@code SensorId.ROTATION_VECTOR}.\n     * @param { Callback<RotationVectorResponse> } callback - callback rotation vector data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.ROTATION_VECTOR, callback: Callback<RotationVectorResponse>): void;\n    /**\n     * Subscribe to significant motion sensor data once.\n     * @param { SensorId.SIGNIFICANT_MOTION } type - Indicate the sensor type to listen for, {@code SensorId.SIGNIFICANT_MOTION}.\n     * @param { Callback<SignificantMotionResponse> } callback - callback significant motion data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.SIGNIFICANT_MOTION, callback: Callback<SignificantMotionResponse>): void;\n    /**\n     * Subscribe to wear detection sensor data once.\n     * @param { SensorId.WEAR_DETECTION } type - Indicate the sensor type to listen for, {@code SensorId.WEAR_DETECTION}.\n     * @param { Callback<WearDetectionResponse> } callback - callback wear detection data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     *\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function once(type: SensorId.WEAR_DETECTION, callback: Callback<WearDetectionResponse>): void;\n    /**\n     * Unsubscribe to accelerometer sensor data.\n     * @permission ohos.permission.ACCELEROMETER\n     * @param { SensorId.ACCELEROMETER } type - Indicate the sensor type to listen for, {@code SensorId.ACCELEROMETER}.\n     * @param { Callback<AccelerometerResponse> } callback - callback accelerometer data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    /**\n     * Unsubscribe to accelerometer sensor data.\n     * @permission ohos.permission.ACCELEROMETER\n     * @param { SensorId.ACCELEROMETER } type - Indicate the sensor type to listen for, {@code SensorId.ACCELEROMETER}.\n     * @param { Callback<AccelerometerResponse> } callback - callback accelerometer data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @atomicservice\n     * @since 11\n     */\n    function off(type: SensorId.ACCELEROMETER, callback?: Callback<AccelerometerResponse>): void;\n    /**\n     * Unsubscribe to uncalibrated accelerometer sensor data.\n     * @permission ohos.permission.ACCELEROMETER\n     * @param { SensorId.ACCELEROMETER_UNCALIBRATED } type - Indicate the sensor type to listen for,\n     *        {@code SensorId.ACCELEROMETER_UNCALIBRATED}.\n     * @param { Callback<AccelerometerUncalibratedResponse> } callback - callback uncalibrated accelerometer data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function off(type: SensorId.ACCELEROMETER_UNCALIBRATED, callback?: Callback<AccelerometerUncalibratedResponse>): void;\n    /**\n     * Unsubscribe to ambient light sensor data.\n     * @param { SensorId.AMBIENT_LIGHT } type - Indicate the sensor type to listen for, {@code SensorId.AMBIENT_LIGHT}.\n     * @param { Callback<LightResponse> } callback - callback ambient data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function off(type: SensorId.AMBIENT_LIGHT, callback?: Callback<LightResponse>): void;\n    /**\n     * Unsubscribe to ambient temperature sensor data.\n     * @param { SensorId.AMBIENT_TEMPERATURE } type - Indicate the sensor type to listen for, {@code SensorId.AMBIENT_TEMPERATURE}.\n     * @param { Callback<AmbientTemperatureResponse> } callback - callback temperature data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function off(type: SensorId.AMBIENT_TEMPERATURE, callback?: Callback<AmbientTemperatureResponse>): void;\n    /**\n     * Unsubscribe to barometer sensor data.\n     * @param { SensorId.BAROMETER } type - Indicate the sensor type to listen for, {@code SensorId.BAROMETER}.\n     * @param { Callback<BarometerResponse> } callback - callback barometer data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function off(type: SensorId.BAROMETER, callback?: Callback<BarometerResponse>): void;\n    /**\n     * Unsubscribe to gravity sensor data.\n     * @param { SensorId.GRAVITY } type - Indicate the sensor type to listen for, {@code SensorId.GRAVITY}.\n     * @param { Callback<GravityResponse> } callback - callback gravity data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function off(type: SensorId.GRAVITY, callback?: Callback<GravityResponse>): void;\n    /**\n     * Unsubscribe to gyroscope sensor data.\n     * @permission ohos.permission.GYROSCOPE\n     * @param { SensorId.GYROSCOPE } type - Indicate the sensor type to listen for, {@code SensorId.GYROSCOPE}.\n     * @param { Callback<GyroscopeResponse> } callback - callback gyroscope data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    /**\n     * Unsubscribe to gyroscope sensor data.\n     * @permission ohos.permission.GYROSCOPE\n     * @param { SensorId.GYROSCOPE } type - Indicate the sensor type to listen for, {@code SensorId.GYROSCOPE}.\n     * @param { Callback<GyroscopeResponse> } callback - callback gyroscope data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @atomicservice\n     * @since 11\n     */\n    function off(type: SensorId.GYROSCOPE, callback?: Callback<GyroscopeResponse>): void;\n    /**\n     * Unsubscribe to uncalibrated gyroscope sensor data.\n     * @permission ohos.permission.GYROSCOPE\n     * @param { SensorId.GYROSCOPE_UNCALIBRATED } type - Indicate the sensor type to listen for, {@code SensorId.GYROSCOPE_UNCALIBRATED}.\n     * @param { Callback<GyroscopeUncalibratedResponse> } callback - callback uncalibrated gyroscope data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function off(type: SensorId.GYROSCOPE_UNCALIBRATED, callback?: Callback<GyroscopeUncalibratedResponse>): void;\n    /**\n     * Unsubscribe to hall sensor data.\n     * @param { SensorId.HALL } type - Indicate the sensor type to listen for, {@code SensorId.HALL}.\n     * @param { Callback<HallResponse> } callback - callback uncalibrated gyroscope data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function off(type: SensorId.HALL, callback?: Callback<HallResponse>): void;\n    /**\n     * Unsubscribe to heart rate sensor data.\n     * @permission ohos.permission.READ_HEALTH_DATA\n     * @param { SensorId.HEART_RATE } type - Indicate the sensor type to listen for, {@code SensorId.HEART_RATE}.\n     * @param { Callback<HeartRateResponse> } callback - callback heart rate data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function off(type: SensorId.HEART_RATE, callback?: Callback<HeartRateResponse>): void;\n    /**\n     * Unsubscribe to humidity sensor data.\n     * @param { SensorId.HUMIDITY } type - Indicate the sensor type to listen for, {@code SensorId.HUMIDITY}.\n     * @param { Callback<HumidityResponse> } callback - callback humidity data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function off(type: SensorId.HUMIDITY, callback?: Callback<HumidityResponse>): void;\n    /**\n     * Unsubscribe to linear acceleration sensor data.\n     * @permission ohos.permission.ACCELEROMETER\n     * @param { SensorId.LINEAR_ACCELEROMETER } type - Indicate the sensor type to listen for, {@code SensorId.LINEAR_ACCELEROMETER}.\n     * @param { Callback<LinearAccelerometerResponse> } callback - callback linear acceleration data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function off(type: SensorId.LINEAR_ACCELEROMETER, callback?: Callback<LinearAccelerometerResponse>): void;\n    /**\n     * Unsubscribe to magnetic field sensor data.\n     * @param { SensorId.MAGNETIC_FIELD } type - Indicate the sensor type to listen for, {@code SensorId.MAGNETIC_FIELD}.\n     * @param { Callback<MagneticFieldResponse> } callback - callback magnetic field data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function off(type: SensorId.MAGNETIC_FIELD, callback?: Callback<MagneticFieldResponse>): void;\n    /**\n     * Unsubscribe to uncalibrated magnetic field sensor data.\n     * @param { SensorId.MAGNETIC_FIELD_UNCALIBRATED } type - Indicate the sensor type to listen for,\n     *        {@code SensorId.MAGNETIC_FIELD_UNCALIBRATED}.\n     * @param { Callback<MagneticFieldUncalibratedResponse> } callback - callback uncalibrated magnetic field data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function off(type: SensorId.MAGNETIC_FIELD_UNCALIBRATED, callback?: Callback<MagneticFieldUncalibratedResponse>): void;\n    /**\n     * Unsubscribe to orientation sensor data.\n     * @param { SensorId.ORIENTATION } type - Indicate the sensor type to listen for, {@code SensorId.ORIENTATION}.\n     * @param { Callback<OrientationResponse> } callback - callback orientation data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    /**\n     * Unsubscribe to orientation sensor data.\n     * @param { SensorId.ORIENTATION } type - Indicate the sensor type to listen for, {@code SensorId.ORIENTATION}.\n     * @param { Callback<OrientationResponse> } callback - callback orientation data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @atomicservice\n     * @since 11\n     */\n    function off(type: SensorId.ORIENTATION, callback?: Callback<OrientationResponse>): void;\n    /**\n     * Unsubscribe to pedometer sensor data.\n     * @permission ohos.permission.ACTIVITY_MOTION\n     * @param { SensorId.PEDOMETER } type - Indicate the sensor type to listen for, {@code SensorId.PEDOMETER}.\n     * @param { Callback<PedometerResponse> } callback - callback pedometer data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function off(type: SensorId.PEDOMETER, callback?: Callback<PedometerResponse>): void;\n    /**\n     * Unsubscribe to pedometer detection sensor data.\n     * @permission ohos.permission.ACTIVITY_MOTION\n     * @param { SensorId.PEDOMETER_DETECTION } type - Indicate the sensor type to listen for, {@code SensorId.PEDOMETER_DETECTION}.\n     * @param { Callback<PedometerDetectionResponse> } callback - callback pedometer detection data.\n     * @throws { BusinessError } 201 - Permission denied.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function off(type: SensorId.PEDOMETER_DETECTION, callback?: Callback<PedometerDetectionResponse>): void;\n    /**\n     * Unsubscribe to proximity sensor data.\n     * @param { SensorId.PROXIMITY } type - Indicate the sensor type to listen for, {@code SensorId.PROXIMITY}.\n     * @param { Callback<ProximityResponse> } callback - callback proximity data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function off(type: SensorId.PROXIMITY, callback?: Callback<ProximityResponse>): void;\n    /**\n     * Unsubscribe to rotation vector sensor data.\n     * @param { SensorId.ROTATION_VECTOR } type - Indicate the sensor type to listen for, {@code SensorId.ROTATION_VECTOR}.\n     * @param { Callback<RotationVectorResponse> } callback - callback rotation vector data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function off(type: SensorId.ROTATION_VECTOR, callback?: Callback<RotationVectorResponse>): void;\n    /**\n     * Unsubscribe to significant motion sensor data.\n     * @param { SensorId.SIGNIFICANT_MOTION } type - Indicate the sensor type to listen for, {@code SensorId.SIGNIFICANT_MOTION}.\n     * @param { Callback<SignificantMotionResponse> } callback - callback significant motion data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function off(type: SensorId.SIGNIFICANT_MOTION, callback?: Callback<SignificantMotionResponse>): void;\n    /**\n     * Unsubscribe to wear detection sensor data.\n     * @param { SensorId.WEAR_DETECTION } type - Indicate the sensor type to listen for, {@code SensorId.WEAR_DETECTION}.\n     * @param { Callback<WearDetectionResponse> } callback - callback wear detection data.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function off(type: SensorId.WEAR_DETECTION, callback?: Callback<WearDetectionResponse>): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @permission ohos.permission.ACCELEROMETER\n     * @param { SensorType.SENSOR_TYPE_ID_ACCELEROMETER } type - Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_ACCELEROMETER}.\n     * @param { Callback<AccelerometerResponse> } callback - callback accelerometer data.\n     * @param { Options } options - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#ACCELEROMETER\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback<AccelerometerResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @permission ohos.permission.ACCELEROMETER\n     * @param { SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED } type - Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED}.\n     * @param { Callback<AccelerometerUncalibratedResponse> } callback - callback accelerometer uncalibrated data.\n     * @param { Options } options - Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#ACCELEROMETER_UNCALIBRATED\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback<AccelerometerUncalibratedResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @param { SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT}.\n     * @param { Callback<LightResponse> } callback - callback light data.\n     * @param { Options } options - options Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#AMBIENT_LIGHT\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback<LightResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @param { SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE}.\n     * @param { Callback<AmbientTemperatureResponse> } callback - callback ambient temperature data.\n     * @param { Options } options - options Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#AMBIENT_TEMPERATURE\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback<AmbientTemperatureResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @param { SensorType.SENSOR_TYPE_ID_BAROMETER } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_BAROMETER}.\n     * @param { Callback<BarometerResponse> } callback - callback barometer data.\n     * @param { Options } options - options Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#BAROMETER\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback<BarometerResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @param { SensorType.SENSOR_TYPE_ID_GRAVITY } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_GRAVITY}.\n     * @param { Callback<GravityResponse> } callback - callback gravity data.\n     * @param { Options } options - options Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#GRAVITY\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback<GravityResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @permission ohos.permission.GYROSCOPE\n     * @param { SensorType.SENSOR_TYPE_ID_GYROSCOPE } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_GYROSCOPE}.\n     * @param { Callback<GyroscopeResponse> } callback - callback gyroscope data.\n     * @param { Options } options - options Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#GYROSCOPE\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback<GyroscopeResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @permission ohos.permission.GYROSCOPE\n     * @param { SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED}.\n     * @param { Callback<GyroscopeUncalibratedResponse> } callback - callback gyroscope uncalibrated data.\n     * @param { Options } options - options Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#GYROSCOPE_UNCALIBRATED\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback<GyroscopeUncalibratedResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @param { SensorType.SENSOR_TYPE_ID_HALL } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_HALL}.\n     * @param { Callback<HallResponse> } callback - callback hall data.\n     * @param { Options } options - options Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#HALL\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback<HallResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @permission ohos.permission.HEALTH_DATA\n     * @param { SensorType.SENSOR_TYPE_ID_HEART_RATE } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_HEART_RATE}.\n     * @param { Callback<HeartRateResponse> } callback - callback heart rate data.\n     * @param { Options } options - options Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#HEART_RATE\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback<HeartRateResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @param { SensorType.SENSOR_TYPE_ID_HUMIDITY } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_HUMIDITY}.\n     * @param { Callback<HumidityResponse> } callback - callback humidity data.\n     * @param { Options } options - options Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#HUMIDITY\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback<HumidityResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @permission ohos.permission.ACCELEROMETER\n     * @param { SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION}.\n     * @param { Callback<LinearAccelerometerResponse> } callback - callback linear accelerometer data.\n     * @param { Options } options - options Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#LINEAR_ACCELEROMETER\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback<LinearAccelerometerResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @param { SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD}.\n     * @param { Callback<MagneticFieldResponse> } callback - callback magnetic field data.\n     * @param { Options } options - options Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#MAGNETIC_FIELD\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback<MagneticFieldResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @param { SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED}.\n     * @param { Callback<MagneticFieldUncalibratedResponse> } callback - callback magnetic field uncalibrated data.\n     * @param { Options } options - options Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#MAGNETIC_FIELD_UNCALIBRATED\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback<MagneticFieldUncalibratedResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @param { SensorType.SENSOR_TYPE_ID_ORIENTATION } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_ORIENTATION}.\n     * @param { Callback<OrientationResponse> } callback - callback orientation data.\n     * @param { Options } options - options Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#ORIENTATION\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback<OrientationResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @permission ohos.permission.ACTIVITY_MOTION\n     * @param { SensorType.SENSOR_TYPE_ID_PEDOMETER } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_PEDOMETER}.\n     * @param { Callback<PedometerResponse> } callback - callback pedometer data.\n     * @param { Options } options - options Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#PEDOMETER\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback<PedometerResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @permission ohos.permission.ACTIVITY_MOTION\n     * @param { SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION}.\n     * @param { Callback<PedometerDetectionResponse> } callback - callback pedometer detection data.\n     * @param { Options } options - options Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#PEDOMETER_DETECTION\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback<PedometerDetectionResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @param { SensorType.SENSOR_TYPE_ID_PROXIMITY } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_PROXIMITY}.\n     * @param { Callback<ProximityResponse> } callback - callback proximity data.\n     * @param { Options } options - options Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#PROXIMITY\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback<ProximityResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @param { SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR}.\n     * @param { Callback<RotationVectorResponse> } callback - callback rotation vector data.\n     * @param { Options } options - options Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#ROTATION_VECTOR\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback<RotationVectorResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @param { SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION}.\n     * @param { Callback<SignificantMotionResponse> } callback - callback significant motion data.\n     * @param { Options } options - options Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#SIGNIFICANT_MOTION\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback<SignificantMotionResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data, If the API is called multiple times, the last call takes effect.\n     * @param { SensorType.SENSOR_TYPE_ID_WEAR_DETECTION } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_WEAR_DETECTION}.\n     * @param { Callback<WearDetectionResponse> } callback - callback wear detection data.\n     * @param { Options } options - options Optional parameters specifying the interval at which sensor data is reported, {@code Options}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#WEAR_DETECTION\n     */\n    function on(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback<WearDetectionResponse>, options?: Options): void;\n    /**\n     * Subscribe to sensor data once.\n     * @permission ohos.permission.ACCELEROMETER\n     * @param { SensorType.SENSOR_TYPE_ID_ACCELEROMETER } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_ACCELEROMETER}.\n     * @param { Callback<AccelerometerResponse> } callback - callback accelerometer data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#ACCELEROMETER\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback: Callback<AccelerometerResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @permission ohos.permission.ACCELEROMETER\n     * @param { SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED}.\n     * @param { Callback<AccelerometerUncalibratedResponse> } callback - callback accelerometer uncalibrated data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#ACCELEROMETER_UNCALIBRATED\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback: Callback<AccelerometerUncalibratedResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @param { SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT}.\n     * @param { Callback<LightResponse> } callback - callback light data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#AMBIENT_LIGHT\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback: Callback<LightResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @param { SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE}.\n     * @param { Callback<AmbientTemperatureResponse> } callback - callback ambient temperature data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#AMBIENT_TEMPERATURE\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback: Callback<AmbientTemperatureResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @param { SensorType.SENSOR_TYPE_ID_BAROMETER } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_BAROMETER}.\n     * @param { Callback<BarometerResponse> } callback - callback barometer data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#BAROMETER\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback: Callback<BarometerResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @param { SensorType.SENSOR_TYPE_ID_GRAVITY } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_GRAVITY}.\n     * @param { Callback<GravityResponse> } callback - callback gravity data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#GRAVITY\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback: Callback<GravityResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @permission ohos.permission.GYROSCOPE\n     * @param { SensorType.SENSOR_TYPE_ID_GYROSCOPE } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_GYROSCOPE}.\n     * @param { Callback<GyroscopeResponse> } callback - callback gyroscope data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#GYROSCOPE\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback: Callback<GyroscopeResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @permission ohos.permission.GYROSCOPE\n     * @param { SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED}.\n     * @param { Callback<GyroscopeUncalibratedResponse> } callback - callback gyroscope uncalibrated data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#GYROSCOPE_UNCALIBRATED\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback: Callback<GyroscopeUncalibratedResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @param { SensorType.SENSOR_TYPE_ID_HALL } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_HALL}.\n     * @param { Callback<HallResponse> } callback - callback hall data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#HALL\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_HALL, callback: Callback<HallResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @permission ohos.permission.HEART_RATE\n     * @param { SensorType.SENSOR_TYPE_ID_HEART_RATE } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_HEART_RATE}.\n     * @param { Callback<HeartRateResponse> } callback - callback heart rate data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#HEART_RATE\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback: Callback<HeartRateResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @param { SensorType.SENSOR_TYPE_ID_HUMIDITY } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_HUMIDITY}.\n     * @param { Callback<HumidityResponse> } callback - callback humidity data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#HUMIDITY\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback: Callback<HumidityResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @permission ohos.permission.ACCELERATION\n     * @param { SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION}.\n     * @param { Callback<LinearAccelerometerResponse> } callback - callback linear accelerometer data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#LINEAR_ACCELEROMETER\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback: Callback<LinearAccelerometerResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @param { SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD}.\n     * @param { Callback<MagneticFieldResponse> } callback - callback magnetic field data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#MAGNETIC_FIELD\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback: Callback<MagneticFieldResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @param { SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED}.\n     * @param { Callback<MagneticFieldUncalibratedResponse> } callback - callback magnetic field uncalibrated data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#MAGNETIC_FIELD_UNCALIBRATED\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback: Callback<MagneticFieldUncalibratedResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @param { SensorType.SENSOR_TYPE_ID_ORIENTATION } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_ORIENTATION}.\n     * @param { Callback<OrientationResponse> } callback - callback orientation data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#ORIENTATION\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback: Callback<OrientationResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @permission ohos.permission.ACTIVITY_MOTION\n     * @param { SensorType.SENSOR_TYPE_ID_PEDOMETER } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_PEDOMETER}.\n     * @param { Callback<PedometerResponse> } callback - callback pedometer data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#PEDOMETER\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback: Callback<PedometerResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @permission ohos.permission.ACTIVITY_MOTION\n     * @param { SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION}.\n     * @param { Callback<PedometerDetectionResponse> } callback - callback pedometer detection data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#PEDOMETER_DETECTION\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback: Callback<PedometerDetectionResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @param { SensorType.SENSOR_TYPE_ID_PROXIMITY } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_PROXIMITY}.\n     * @param { Callback<ProximityResponse> } callback - callback proximity data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#PROXIMITY\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback: Callback<ProximityResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @param { SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR}.\n     * @param { Callback<RotationVectorResponse> } callback - callback rotation vector data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#ROTATION_VECTOR\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback: Callback<RotationVectorResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @param { SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION}.\n     * @param { Callback<SignificantMotionResponse> } callback - callback significant motion data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#SIGNIFICANT_MOTION\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback: Callback<SignificantMotionResponse>): void;\n    /**\n     * Subscribe to sensor data once.\n     * @param { SensorType.SENSOR_TYPE_ID_WEAR_DETECTION } type - type Indicate the sensor type to listen for,\n     *        {@code SensorType.SENSOR_TYPE_ID_WEAR_DETECTION}.\n     * @param { Callback<WearDetectionResponse> } callback - callback wear detection data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#WEAR_DETECTION\n     */\n    function once(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback: Callback<WearDetectionResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @permission ohos.permission.ACCELEROMETER\n     * @param { SensorType.SENSOR_TYPE_ID_ACCELEROMETER } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_ACCELEROMETER}.\n     * @param { Callback<AccelerometerResponse> } callback - callback accelerometer data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#ACCELEROMETER\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback?: Callback<AccelerometerResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @permission ohos.permission.ACCELEROMETER\n     * @param { SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED}.\n     * @param { Callback<AccelerometerUncalibratedResponse> } callback - callback accelerometer uncalibrated data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#ACCELEROMETER_UNCALIBRATED\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED, callback?: Callback<AccelerometerUncalibratedResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @param { SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT}.\n     * @param { Callback<LightResponse> } callback - callback light data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#AMBIENT_LIGHT\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback?: Callback<LightResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @param { SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE}.\n     * @param { Callback<AmbientTemperatureResponse> } callback - callback ambient temperature data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#AMBIENT_TEMPERATURE\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_AMBIENT_TEMPERATURE, callback?: Callback<AmbientTemperatureResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @param { SensorType.SENSOR_TYPE_ID_BAROMETER } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_BAROMETER}.\n     * @param { Callback<BarometerResponse> } callback - callback barometer response data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#BAROMETER\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_BAROMETER, callback?: Callback<BarometerResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @param { SensorType.SENSOR_TYPE_ID_GRAVITY } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_GRAVITY}.\n     * @param { Callback<GravityResponse> } callback - callback gravity data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#GRAVITY\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_GRAVITY, callback?: Callback<GravityResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @permission ohos.permission.GYROSCOPE\n     * @param { SensorType.SENSOR_TYPE_ID_GYROSCOPE } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_GYROSCOPE}.\n     * @param { Callback<GyroscopeResponse> } callback - callback gyroscope data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#GYROSCOPE\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback?: Callback<GyroscopeResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @permission ohos.permission.GYROSCOPE\n     * @param { SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED}.\n     * @param { Callback<GyroscopeUncalibratedResponse> } callback - callback gyroscope uncalibrated data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#GYROSCOPE_UNCALIBRATED\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED, callback?: Callback<GyroscopeUncalibratedResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @param { SensorType.SENSOR_TYPE_ID_HALL } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_HALL}.\n     * @param { Callback<HallResponse> } callback - callback hall data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#HALL\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_HALL, callback?: Callback<HallResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @permission ohos.permission.HEALTH_DATA\n     * @param { SensorType.SENSOR_TYPE_ID_HEART_RATE } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_HEART_RATE}.\n     * @param { Callback<HeartRateResponse> } callback - callback heart rate data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#HEART_RATE\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_HEART_RATE, callback?: Callback<HeartRateResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @param { SensorType.SENSOR_TYPE_ID_HUMIDITY } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_HUMIDITY}.\n     * @param { Callback<HumidityResponse> } callback - callback humidity data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#HUMIDITY\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_HUMIDITY, callback?: Callback<HumidityResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @permission ohos.permission.ACCELEROMETER\n     * @param { SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION}.\n     * @param { Callback<LinearAccelerometerResponse> } callback - callback linear accelerometer data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#LINEAR_ACCELEROMETER\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_LINEAR_ACCELERATION, callback?: Callback<LinearAccelerometerResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @param { SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD}.\n     * @param { Callback<MagneticFieldResponse> } callback - callback magnetic field data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#MAGNETIC_FIELD\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback?: Callback<MagneticFieldResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @param { SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED}.\n     * @param { Callback<MagneticFieldUncalibratedResponse> } callback - callback magnetic field uncalibrated data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#MAGNETIC_FIELD_UNCALIBRATED\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED, callback?: Callback<MagneticFieldUncalibratedResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @param { SensorType.SENSOR_TYPE_ID_ORIENTATION } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_ORIENTATION}.\n     * @param { Callback<OrientationResponse> } callback - callback orientation data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#ORIENTATION\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_ORIENTATION, callback?: Callback<OrientationResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @permission ohos.permission.ACTIVITY_MOTION\n     * @param { SensorType.SENSOR_TYPE_ID_PEDOMETER } type - type Indicate the sensor type to unsubscribe, {@code SensorType.SENSOR_TYPE_ID_PEDOMETER}.\n     * @param { Callback<PedometerResponse> } callback - callback pedometer data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#PEDOMETER\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_PEDOMETER, callback?: Callback<PedometerResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @permission ohos.permission.ACTIVITY_MOTION\n     * @param { SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION}.\n     * @param { Callback<PedometerDetectionResponse> } callback - callback pedometer detection data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#PEDOMETER_DETECTION\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback?: Callback<PedometerDetectionResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @param { SensorType.SENSOR_TYPE_ID_PROXIMITY } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_PROXIMITY}.\n     * @param { Callback<ProximityResponse> } callback - callback proximity data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#PROXIMITY\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_PROXIMITY, callback?: Callback<ProximityResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @param { SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR}.\n     * @param { Callback<RotationVectorResponse> } callback - callback rotation vector data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#ROTATION_VECTOR\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback?: Callback<RotationVectorResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @param { SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION}.\n     * @param { Callback<SignificantMotionResponse> } callback - callback significant motion data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#SIGNIFICANT_MOTION\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_SIGNIFICANT_MOTION, callback?: Callback<SignificantMotionResponse>): void;\n    /**\n     * Unsubscribe to sensor data.\n     * @param { SensorType.SENSOR_TYPE_ID_WEAR_DETECTION } type - type Indicate the sensor type to unsubscribe,\n     *        {@code SensorType.SENSOR_TYPE_ID_WEAR_DETECTION}.\n     * @param { Callback<WearDetectionResponse> } callback - callback wear detection data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId#WEAR_DETECTION\n     */\n    function off(type: SensorType.SENSOR_TYPE_ID_WEAR_DETECTION, callback?: Callback<WearDetectionResponse>): void;\n    /**\n     * Indicates sensor information.\n     * @typedef Sensor\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    interface Sensor {\n        /**\n         * Sensor name.\n         * @type { string }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        sensorName: string;\n        /**\n         * Sensor vendor.\n         * @type { string }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        vendorName: string;\n        /**\n         * Sensor firmware version.\n         * @type { string }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        firmwareVersion: string;\n        /**\n         * Sensor hardware version.\n         * @type { string }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        hardwareVersion: string;\n        /**\n         * Sensor type ID, {@code SensorType}.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        sensorId: number;\n        /**\n         * Maximum measurement range of the sensor.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        maxRange: number;\n        /**\n         * Minimum sample period allowed, in ns.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        minSamplePeriod: number;\n        /**\n         * Maximum sample period allowed, in ns.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        maxSamplePeriod: number;\n        /**\n         * Sensor accuracy.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        precision: number;\n        /**\n         * Sensor power.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 9\n         */\n        power: number;\n    }\n    /**\n     * Obtains the sensor information of a specified type.\n     * @param { SensorId } type - Indicate the sensor type, {@code SensorId}.\n     * @param { AsyncCallback<Sensor> } callback - callback sensor info.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    /**\n     * Obtains the sensor information of a specified type.\n     * @param { SensorId } type - Indicate the sensor type, {@code SensorId}.\n     * @param { AsyncCallback<Sensor> } callback - callback sensor info.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @throws { BusinessError } 14500102 - The sensor is not supported by the device.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 12\n     */\n    function getSingleSensor(type: SensorId, callback: AsyncCallback<Sensor>): void;\n    /**\n     * Obtains the sensor information of a specified type.\n     * @param { SensorId } type - Indicate the sensor type, {@code SensorId}.\n     * @returns { Promise<Sensor> } Promise used to return the result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    /**\n     * Obtains the sensor information of a specified type.\n     * @param { SensorId } type - Indicate the sensor type, {@code SensorId}.\n     * @returns { Promise<Sensor> } Promise used to return the result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @throws { BusinessError } 14500102 - The sensor is not supported by the device.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 12\n     */\n    function getSingleSensor(type: SensorId): Promise<Sensor>;\n    /**\n     * Synchronously obtains the sensor information of a specified type.\n     * @param { SensorId } type - Indicate the sensor type, {@code SensorId}.\n     * @returns { Sensor } Returns sensor information.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @throws { BusinessError } 14500102 - The sensor is not supported by the device.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 12\n     */\n    function getSingleSensorSync(type: SensorId): Sensor;\n    /**\n     * Obtains all sensor information on the device.\n     * @param { AsyncCallback<Array<Sensor>> } callback - callback sensor list.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function getSensorList(callback: AsyncCallback<Array<Sensor>>): void;\n    /**\n     * Obtains all sensor information on the device.\n     * @returns { Promise<Array<Sensor>> } Promise used to return the result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function getSensorList(): Promise<Array<Sensor>>;\n    /**\n     * Synchronously obtains all sensor information on the device.\n     * @returns { Array<Sensor> } Return a list of sensor information.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 12\n     */\n    function getSensorListSync(): Array<Sensor>;\n    /**\n     * Indicates geomagnetic field data.\n     * @typedef GeomagneticResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface GeomagneticResponse {\n        /**\n         * Geomagnetic x-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        x: number;\n        /**\n         * Geomagnetic y-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        y: number;\n        /**\n         * Geomagnetic z-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        z: number;\n        /**\n         * The Angle between the earth's magnetic field lines and the horizontal plane.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        geomagneticDip: number;\n        /**\n         * The Angle of magnetic north and true north on a horizontal plane.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        deflectionAngle: number;\n        /**\n         * The horizontal strength of the geomagnetic field.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        levelIntensity: number;\n        /**\n         * The total strength of the geomagnetic field.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        totalIntensity: number;\n    }\n    /**\n     * Indicates geographic location.\n     * @typedef LocationOptions\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface LocationOptions {\n        /**\n         * Specifies the latitude of the point.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        latitude: number;\n        /**\n         * Specifies the longitude of the point.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        longitude: number;\n        /**\n         * Specifies the altitude of the point.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        altitude: number;\n    }\n    /**\n     * Implements the calculation of the geomagnetic field at a specific location on Earth.\n     * @param { LocationOptions } locationOptions - Indicates geographic location, {@code LocationOptions}.\n     * @param { number } timeMillis - Indicates the time at which the magnetic declination is to be obtained,\n     * in milliseconds since the Unix epoch.\n     * @param { AsyncCallback<GeomagneticResponse> } callback - callback geomagnetic field.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor#getGeomagneticInfo\n     */\n    function getGeomagneticField(locationOptions: LocationOptions, timeMillis: number, callback: AsyncCallback<GeomagneticResponse>): void;\n    /**\n     * Implements the calculation of the geomagnetic field at a specific location on Earth.\n     * @param { LocationOptions } locationOptions - LocationOptions Indicates geographic location, {@code LocationOptions}.\n     * @param { number } timeMillis - timeMillis Indicates the time at which the magnetic declination is to be obtained,\n     * in milliseconds since the Unix epoch.\n     * @returns { Promise<GeomagneticResponse> } Returns the geomagnetic field data, {@code GeomagneticResponse}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor#getGeomagneticInfo\n     */\n    function getGeomagneticField(locationOptions: LocationOptions, timeMillis: number): Promise<GeomagneticResponse>;\n    /**\n     * Obtains the geomagnetic field at a specific location on the Earth.\n     * @param { LocationOptions } locationOptions - LocationOptions Indicates geographic location, {@code LocationOptions}.\n     * @param { number } timeMillis - timeMillis Indicates the time at which the magnetic declination is to be obtained,\n     * in milliseconds since the Unix epoch.\n     * @param { AsyncCallback<GeomagneticResponse> } callback - callback geomagnetic field.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function getGeomagneticInfo(locationOptions: LocationOptions, timeMillis: number, callback: AsyncCallback<GeomagneticResponse>): void;\n    /**\n     * Obtains the geomagnetic field at a specific location on the Earth.\n     * @param { LocationOptions } locationOptions - LocationOptions Indicates geographic location, {@code LocationOptions}.\n     * @param { number } timeMillis - timeMillis Indicates the time at which the magnetic declination is to be obtained,\n     * in milliseconds since the Unix epoch.\n     * @returns { Promise<GeomagneticResponse> } Promise used to return the result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function getGeomagneticInfo(locationOptions: LocationOptions, timeMillis: number): Promise<GeomagneticResponse>;\n    /**\n     * Obtains the altitude at which the device is located based on the current atmospheric pressure.\n     * @param { number } seaPressure - Indicates the sea level pressure, in hPa.\n     * @param { number } currentPressure - Indicates the atmospheric pressure measured by the barometer, in hPa.\n     * @param { AsyncCallback<number> } callback - callback device altitude.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor#getDeviceAltitude\n     */\n    function getAltitude(seaPressure: number, currentPressure: number, callback: AsyncCallback<number>): void;\n    /**\n     * Obtains the altitude at which the device is located based on the current atmospheric pressure.\n     * @param { number } seaPressure - seaPressure Indicates the sea level pressure, in hPa.\n     * @param { number } currentPressure - currentPressure Indicates the atmospheric pressure measured by the barometer, in hPa.\n     * @returns { Promise<number> } Returns the altitude in meters at which the device is located.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor#getDeviceAltitude\n     */\n    function getAltitude(seaPressure: number, currentPressure: number): Promise<number>;\n    /**\n     * Obtains the altitude at which the device is located based on the current atmospheric pressure.\n     * @param { number } seaPressure - seaPressure Indicates the sea level pressure, in hPa.\n     * @param { number } currentPressure - currentPressure Indicates the atmospheric pressure measured by the barometer, in hPa.\n     * @param { AsyncCallback<number> } callback - callback device altitude.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function getDeviceAltitude(seaPressure: number, currentPressure: number, callback: AsyncCallback<number>): void;\n    /**\n     * Obtains the altitude at which the device is located based on the current atmospheric pressure.\n     * @param { number } seaPressure - seaPressure Indicates the sea level pressure, in hPa.\n     * @param { number } currentPressure - currentPressure Indicates the atmospheric pressure measured by the barometer, in hPa.\n     * @returns { Promise<number> } Promise used to return the result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function getDeviceAltitude(seaPressure: number, currentPressure: number): Promise<number>;\n    /**\n     * Computes the geomagnetic inclination angle in radians from the inclination matrix.\n     * @param { Array<number> } inclinationMatrix - Indicates the inclination matrix.\n     * @param { AsyncCallback<number> } callback - callback geomagnetic inclination data.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor#getInclination\n     */\n    function getGeomagneticDip(inclinationMatrix: Array<number>, callback: AsyncCallback<number>): void;\n    /**\n     * Computes the geomagnetic inclination angle in radians from the inclination matrix.\n     * @param { Array<number> } inclinationMatrix - Indicates the inclination matrix.\n     * @returns { Promise<number> } Returns the geomagnetic inclination angle in radians.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor#getInclination\n     */\n    function getGeomagneticDip(inclinationMatrix: Array<number>): Promise<number>;\n    /**\n     * Computes the geomagnetic inclination in radians from the inclination matrix.\n     * @param { Array<number> } inclinationMatrix - Indicates the inclination matrix.\n     * @param { AsyncCallback<number> } callback - callback inclination in radians.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function getInclination(inclinationMatrix: Array<number>, callback: AsyncCallback<number>): void;\n    /**\n     * Computes the geomagnetic inclination in radians from the inclination matrix.\n     * @param { Array<number> } inclinationMatrix - Indicates the inclination matrix.\n     * @returns { Promise<number> } Promise used to return the result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function getInclination(inclinationMatrix: Array<number>): Promise<number>;\n    /**\n     * Get the angle change between two rotation matrices.\n     * @param { Array<number> } currentRotationMatrix - Indicates the current rotation matrix.\n     * @param { Array<number> } preRotationMatrix - Indicates the current rotation matrix.\n     * @param { AsyncCallback<Array<number>> } callback - callback angle variation.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor#getAngleVariation\n     */\n    function getAngleModify(currentRotationMatrix: Array<number>, preRotationMatrix: Array<number>, callback: AsyncCallback<Array<number>>): void;\n    /**\n     * Get the angle change between two rotation matrices.\n     * @param { Array<number> } currentRotationMatrix - currentRotationMatrix Indicates the current rotation matrix.\n     * @param { Array<number> } preRotationMatrix - preRotationMatrix Indicates the current rotation matrix.\n     * @returns { Promise<Array<number>> } Returns the array of number(z, x and y) in which the angle variety.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor#getAngleVariation\n     */\n    function getAngleModify(currentRotationMatrix: Array<number>, preRotationMatrix: Array<number>): Promise<Array<number>>;\n    /**\n     * Get the angle variation between two rotation matrices.\n     * @param { Array<number> } currentRotationMatrix - currentRotationMatrix Indicates the current rotation matrix.\n     * @param { Array<number> } preRotationMatrix - preRotationMatrix Indicates the current rotation matrix.\n     * @param { AsyncCallback<Array<number>> } callback - callback angle variation.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function getAngleVariation(currentRotationMatrix: Array<number>, preRotationMatrix: Array<number>, callback: AsyncCallback<Array<number>>): void;\n    /**\n     * Get the angle variation between two rotation matrices.\n     * @param { Array<number> } currentRotationMatrix -  Indicates the current rotation matrix.\n     * @param { Array<number> } preRotationMatrix - preRotationMatrix Indicates the current rotation matrix.\n     * @returns { Promise<Array<number>> } Promise used to return the result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function getAngleVariation(currentRotationMatrix: Array<number>, preRotationMatrix: Array<number>): Promise<Array<number>>;\n    /**\n     * Convert rotation vector to rotation matrix.\n     * @param { Array<number> } rotationVector - Indicates the rotation vector.\n     * @param { AsyncCallback<Array<number>> } callback - callback rotation matrix.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor#getRotationMatrix\n     */\n    function createRotationMatrix(rotationVector: Array<number>, callback: AsyncCallback<Array<number>>): void;\n    /**\n     * Convert rotation vector to rotation matrix.\n     * @param { Array<number> } rotationVector - rotationVector Indicates the rotation vector.\n     * @returns { Promise<Array<number>> } Returns the rotation matrix.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor#getRotationMatrix\n     */\n    function createRotationMatrix(rotationVector: Array<number>): Promise<Array<number>>;\n    /**\n     * Convert rotation vector to rotation matrix.\n     * @param { Array<number> } rotationVector - rotationVector Indicates the rotation vector.\n     * @param { AsyncCallback<Array<number>> } callback - callback rotation matrix.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function getRotationMatrix(rotationVector: Array<number>, callback: AsyncCallback<Array<number>>): void;\n    /**\n     * Convert rotation vector to rotation matrix.\n     * @param { Array<number> } rotationVector - rotationVector Indicates the rotation vector.\n     * @returns { Promise<Array<number>> } Promise used to return the result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function getRotationMatrix(rotationVector: Array<number>): Promise<Array<number>>;\n    /**\n     * Indicates the axis of the new coordinate system that coincides with the XY axis of the original coordinate system.\n     * @typedef CoordinatesOptions\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface CoordinatesOptions {\n        /** Indicates the axis of the new coordinate system that coincides with the X axis of the original coordinate system.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        x: number;\n        /** Indicates the axis of the new coordinate system that coincides with the Y axis of the original coordinate system.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        y: number;\n    }\n    /**\n     * Rotate the provided rotation matrix so that it can be represented in a different way Coordinate System.\n     * @param { Array<number> } inRotationVector - Indicates the rotation matrix to be transformed.\n     * @param { CoordinatesOptions } coordinates - Indicates coordinate system guidance, {@code CoordinatesOptions}.\n     * @param { AsyncCallback<Array<number>> } callback - callback rotation matrix.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor#transformRotationMatrix\n     */\n    function transformCoordinateSystem(inRotationVector: Array<number>, coordinates: CoordinatesOptions, callback: AsyncCallback<Array<number>>): void;\n    /**\n     * Rotate the provided rotation matrix so that it can be represented in a different way Coordinate System.\n     * @param { Array<number> } inRotationVector - inRotationVector Indicates the rotation matrix to be transformed.\n     * @param { CoordinatesOptions } coordinates - coordinates Indicates coordinate system guidance, {@code CoordinatesOptions}.\n     * @returns { Promise<Array<number>> } Returns the transformed rotation matrix.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor#transformRotationMatrix\n     */\n    function transformCoordinateSystem(inRotationVector: Array<number>, coordinates: CoordinatesOptions): Promise<Array<number>>;\n    /**\n     * Rotate the provided rotation matrix so that it can be represented in a different way coordinate System.\n     * @param { Array<number> } inRotationVector - inRotationVector Indicates the rotation matrix to be transformed.\n     * @param { CoordinatesOptions } coordinates - coordinates Indicates coordinate system guidance, {@code CoordinatesOptions}.\n     * @param { AsyncCallback<Array<number>> } callback - callback rotation matrix.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function transformRotationMatrix(inRotationVector: Array<number>, coordinates: CoordinatesOptions, callback: AsyncCallback<Array<number>>): void;\n    /**\n     * Rotate the provided rotation matrix so that it can be represented in a different way coordinate System.\n     * @param { Array<number> } inRotationVector - inRotationVector Indicates the rotation matrix to be transformed.\n     * @param { CoordinatesOptions } coordinates - coordinates Indicates coordinate system guidance, {@code CoordinatesOptions}.\n     * @returns { Promise<Array<number>> } Promise used to return the result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function transformRotationMatrix(inRotationVector: Array<number>, coordinates: CoordinatesOptions): Promise<Array<number>>;\n    /**\n     * convert a rotation vector to a normalized quaternion.\n     * @param { Array<number> } rotationVector - Indicates the rotation vector.\n     * @param { AsyncCallback<Array<number>> } callback - callback a normalized quaternion.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor#getQuaternion\n     */\n    function createQuaternion(rotationVector: Array<number>, callback: AsyncCallback<Array<number>>): void;\n    /**\n     * convert a rotation vector to a normalized quaternion.\n     * @param { Array<number> } rotationVector - rotationVector Indicates the rotation vector.\n     * @returns { Promise<Array<number>> } Returns the normalized quaternion.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor#getQuaternion\n     */\n    function createQuaternion(rotationVector: Array<number>): Promise<Array<number>>;\n    /**\n     * convert a rotation vector to a normalized quaternion.\n     * @param { Array<number> } rotationVector - rotationVector Indicates the rotation vector.\n     * @param { AsyncCallback<Array<number>> } callback - callback a normalized quaternion.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function getQuaternion(rotationVector: Array<number>, callback: AsyncCallback<Array<number>>): void;\n    /**\n     * convert a rotation vector to a normalized quaternion.\n     * @param { Array<number> } rotationVector - rotationVector Indicates the rotation vector.\n     * @returns { Promise<Array<number>> } Promise used to return the result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function getQuaternion(rotationVector: Array<number>): Promise<Array<number>>;\n    /**\n     * Computes the device's orientation based on the rotation matrix.\n     * @param { Array<number> } rotationMatrix - Indicates the rotation matrix.\n     * @param { AsyncCallback<Array<number>> } callback - callback the angle of rotation around the z, x, y axis.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor#getOrientation\n     */\n    function getDirection(rotationMatrix: Array<number>, callback: AsyncCallback<Array<number>>): void;\n    /**\n     * Computes the device's orientation based on the rotation matrix.\n     * @param { Array<number> } rotationMatrix - rotationMatrix Indicates the rotation matrix.\n     * @returns { Promise<Array<number>> } Returns the array is the angle of rotation around the z, x, y axis.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor#getOrientation\n     */\n    function getDirection(rotationMatrix: Array<number>): Promise<Array<number>>;\n    /**\n     * Computes the device's orientation based on the rotation matrix.\n     * @param { Array<number> } rotationMatrix - rotationMatrix Indicates the rotation matrix.\n     * @param { AsyncCallback<Array<number>> } callback - callback the angle of rotation around the z, x, y axis.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function getOrientation(rotationMatrix: Array<number>, callback: AsyncCallback<Array<number>>): void;\n    /**\n     * Computes the device's orientation based on the rotation matrix.\n     * @param { Array<number> } rotationMatrix - rotationMatrix Indicates the rotation matrix.\n     * @returns { Promise<Array<number>> } Promise used to return the result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function getOrientation(rotationMatrix: Array<number>): Promise<Array<number>>;\n    /**\n     * Indicates the response of rotation matrix.\n     * @typedef RotationMatrixResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface RotationMatrixResponse {\n        /**\n         * rotation matrix.\n         * @type { Array<number> }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        rotation: Array<number>;\n        /**\n         * inclination matrix.\n         * @type { Array<number> }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        inclination: Array<number>;\n    }\n    /**\n     * Calculate rotation matrix based on gravity vector and geomagnetic vector.\n     * @param { Array<number> } gravity - Indicates the gravity vector.\n     * @param { Array<number> } geomagnetic - Indicates the geomagnetic vector.\n     * @param { AsyncCallback<RotationMatrixResponse> } callback - callback rotation matrix and inclination matrix.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor#getRotationMatrix\n     */\n    function createRotationMatrix(gravity: Array<number>, geomagnetic: Array<number>, callback: AsyncCallback<RotationMatrixResponse>): void;\n    /**\n     * Calculate rotation matrix based on gravity vector and geomagnetic vector.\n     * @param { Array<number> } gravity - gravity Indicates the gravity vector.\n     * @param { Array<number> } geomagnetic - geomagnetic Indicates the geomagnetic vector.\n     * @returns { Promise<RotationMatrixResponse> } Returns the rotation matrix, {@code RotationMatrixResponse}.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor#getRotationMatrix\n     */\n    function createRotationMatrix(gravity: Array<number>, geomagnetic: Array<number>): Promise<RotationMatrixResponse>;\n    /**\n     * Calculate rotation matrix based on gravity vector and geomagnetic vector.\n     * @param { Array<number> } gravity - gravity Indicates the gravity vector.\n     * @param { Array<number> } geomagnetic - geomagnetic Indicates the geomagnetic vector.\n     * @param { AsyncCallback<RotationMatrixResponse> } callback - callback rotation matrix and inclination matrix.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function getRotationMatrix(gravity: Array<number>, geomagnetic: Array<number>, callback: AsyncCallback<RotationMatrixResponse>): void;\n    /**\n     * Calculate rotation matrix based on gravity vector and geomagnetic vector.\n     * @param { Array<number> } gravity - gravity Indicates the gravity vector.\n     * @param { Array<number> } geomagnetic - geomagnetic Indicates the geomagnetic vector.\n     * @returns { Promise<RotationMatrixResponse> } Promise used to return the result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n     * <br> 2. Incorrect parameter types; 3. Parameter verification failed.\n     * @throws { BusinessError } 14500101 - Service exception. Possible causes: 1. Sensor hdf service exception;\n     * <br> 2. Sensor service ipc exception;3. Sensor data channel exception.\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 9\n     */\n    function getRotationMatrix(gravity: Array<number>, geomagnetic: Array<number>): Promise<RotationMatrixResponse>;\n    /**\n     * Subscribe to the sensor's optional parameters.\n     * @typedef Options\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    /**\n     * Subscribe to the sensor's optional parameters.\n     * @typedef Options\n     * @syscap SystemCapability.Sensors.Sensor\n     * @atomicservice\n     * @since 11\n     */\n    interface Options {\n        /**\n         * Sensor event reporting event interval.\n         * @type { ?number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        /**\n         * Sensor event reporting event interval.\n         * @type { ?(number | SensorFrequency) }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @atomicservice\n         * @since 11\n         */\n        interval?: number | SensorFrequency;\n    }\n    /**\n     * The sensor reporting frequency is divided into three modes.\n     * @typedef {'game' | 'ui' | 'normal'}\n     * @syscap SystemCapability.Sensors.Sensor\n     * @atomicservice\n     * @since 11\n     */\n    type SensorFrequency = 'game' | 'ui' | 'normal';\n    /**\n     * The type of number.\n     * @enum { number }\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     * @deprecated since 9\n     * @useinstead sensor.SensorId\n     */\n    enum SensorType {\n        /**\n         * Acceleration sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_ACCELEROMETER = 1,\n        /**\n         * Gyroscope sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_GYROSCOPE = 2,\n        /**\n         * Ambient light sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_AMBIENT_LIGHT = 5,\n        /**\n         * Magnetic field sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_MAGNETIC_FIELD = 6,\n        /**\n         * Barometric pressure sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_BAROMETER = 8,\n        /**\n         * Hall effect sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_HALL = 10,\n        /**\n         * Proximity sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_PROXIMITY = 12,\n        /**\n         * Humidity sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_HUMIDITY = 13,\n        /**\n         * Orientation sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_ORIENTATION = 256,\n        /**\n         * Gravity sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_GRAVITY = 257,\n        /**\n         * Linear acceleration sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_LINEAR_ACCELERATION = 258,\n        /**\n         * Rotation vector sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_ROTATION_VECTOR = 259,\n        /**\n         * Ambient temperature sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_AMBIENT_TEMPERATURE = 260,\n        /**\n         * Uncalibrated magnetic field sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_MAGNETIC_FIELD_UNCALIBRATED = 261,\n        /**\n         * Uncalibrated gyroscope sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_GYROSCOPE_UNCALIBRATED = 263,\n        /**\n         * Significant motion sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_SIGNIFICANT_MOTION = 264,\n        /**\n         * Pedometer detection sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_PEDOMETER_DETECTION = 265,\n        /**\n         * Pedometer sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_PEDOMETER = 266,\n        /**\n         * Heart rate sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_HEART_RATE = 278,\n        /**\n         * Wear detection sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_WEAR_DETECTION = 280,\n        /**\n         * Uncalibrated acceleration sensor.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         * @deprecated since 9\n         */\n        SENSOR_TYPE_ID_ACCELEROMETER_UNCALIBRATED = 281\n    }\n    /**\n     * Enumerates the accuracy levels of data reported by a sensor.\n     * @enum { number }\n     * @syscap SystemCapability.Sensors.Sensor\n     * @atomicservice\n     * @since 11\n     */\n    enum SensorAccuracy {\n        /**\n         * The sensor data is unreliable. It is possible that the sensor does not contact with the device to measure.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @atomicservice\n         * @since 11\n         */\n        ACCURACY_UNRELIABLE = 0,\n        /**\n         * The sensor data is at a low accuracy level. The data must be calibrated based on the environment before being used.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @atomicservice\n         * @since 11\n         */\n        ACCURACY_LOW = 1,\n        /**\n         * The sensor data is at a medium accuracy level. You are advised to calibrate the data based on the environment before using it.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @atomicservice\n         * @since 11\n         */\n        ACCURACY_MEDIUM = 2,\n        /**\n         * The sensor data is at a high accuracy level. The data can be used directly.\n         * @syscap SystemCapability.Sensors.Sensor\n         * @atomicservice\n         * @since 11\n         */\n        ACCURACY_HIGH = 3\n    }\n    /**\n     * The basic data structure of the sensor event.\n     * @typedef Response\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    /**\n     * The basic data structure of the sensor event.\n     * @typedef Response\n     * @syscap SystemCapability.Sensors.Sensor\n     * @atomicservice\n     * @since 11\n     */\n    interface Response {\n        /**\n         * The timestamp of the reported sensor data.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        /**\n         * The timestamp of the reported sensor data.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @atomicservice\n         * @since 11\n         */\n        timestamp: number;\n        /**\n         * The accuracy levels of data reported by a sensor.\n         * @type { SensorAccuracy }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @atomicservice\n         * @since 11\n         */\n        accuracy: SensorAccuracy;\n    }\n    /**\n     * Acceleration sensor event data.\n     * @typedef AccelerometerResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    /**\n     * Acceleration sensor event data.\n     * @typedef AccelerometerResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @atomicservice\n     * @since 11\n     */\n    interface AccelerometerResponse extends Response {\n        /**\n         * Acceleration x-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        /**\n         * Acceleration x-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @atomicservice\n         * @since 11\n         */\n        x: number;\n        /**\n         * Acceleration y-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        /**\n         * Acceleration y-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @atomicservice\n         * @since 11\n         */\n        y: number;\n        /**\n         * Acceleration z-axis component\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        /**\n         * Acceleration z-axis component\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @atomicservice\n         * @since 11\n         */\n        z: number;\n    }\n    /**\n     * Linear acceleration sensor event data.\n     * @typedef LinearAccelerometerResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface LinearAccelerometerResponse extends Response {\n        /**\n         * Linear acceleration x-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        x: number;\n        /**\n         * Linear acceleration y-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        y: number;\n        /**\n         * Linear acceleration z-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        z: number;\n    }\n    /**\n     * Acceleration uncalibrated sensor event data.\n     * @typedef AccelerometerUncalibratedResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface AccelerometerUncalibratedResponse extends Response {\n        /**\n         * Acceleration uncalibrated x-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        x: number;\n        /**\n         * Acceleration uncalibrated y-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        y: number;\n        /**\n         * Acceleration uncalibrated z-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        z: number;\n        /**\n         * Acceleration uncalibrated x-axis offset.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        biasX: number;\n        /**\n         * Acceleration uncalibrated y-axis offset.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        biasY: number;\n        /**\n         * Acceleration uncalibrated z-axis offset.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        biasZ: number;\n    }\n    /**\n     * Gravity sensor event data.\n     * @typedef GravityResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface GravityResponse extends Response {\n        /**\n         * Gravity x-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        x: number;\n        /**\n         * Gravity y-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        y: number;\n        /**\n         * Gravity z-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        z: number;\n    }\n    /**\n     * Orientation sensor event data.\n     * @typedef OrientationResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    /**\n     * Orientation sensor event data.\n     * @typedef OrientationResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @atomicservice\n     * @since 11\n     */\n    interface OrientationResponse extends Response {\n        /**\n         * The device rotates at an angle around the Z axis.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        /**\n         * The device rotates at an angle around the Z axis.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @atomicservice\n         * @since 11\n         */\n        alpha: number;\n        /**\n         * The device rotates at an angle around the X axis.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        /**\n         * The device rotates at an angle around the X axis.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @atomicservice\n         * @since 11\n         */\n        beta: number;\n        /**\n         * The device rotates at an angle around the Y axis.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        /**\n         * The device rotates at an angle around the Y axis.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @atomicservice\n         * @since 11\n         */\n        gamma: number;\n    }\n    /**\n     * Rotation vector sensor event data.\n     * @typedef RotationVectorResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface RotationVectorResponse extends Response {\n        /**\n         * Rotation vector x-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        x: number;\n        /**\n         * Rotation vector y-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        y: number;\n        /**\n         * Rotation vector z-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        z: number;\n        /**\n         * Scalar quantity.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        w: number;\n    }\n    /**\n     * Gyroscope sensor event data.\n     * @typedef GyroscopeResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    /**\n     * Gyroscope sensor event data.\n     * @typedef GyroscopeResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @atomicservice\n     * @since 11\n     */\n    interface GyroscopeResponse extends Response {\n        /**\n         * Gyroscope x-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        /**\n         * Gyroscope x-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @atomicservice\n         * @since 11\n         */\n        x: number;\n        /**\n         * Gyroscope y-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        /**\n         * Gyroscope y-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @atomicservice\n         * @since 11\n         */\n        y: number;\n        /**\n         * Gyroscope z-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        /**\n         * Gyroscope z-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @atomicservice\n         * @since 11\n         */\n        z: number;\n    }\n    /**\n     * Gyroscope uncalibrated sensor event data.\n     * @typedef GyroscopeUncalibratedResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface GyroscopeUncalibratedResponse extends Response {\n        /**\n         * Gyroscope uncalibrated x-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        x: number;\n        /**\n         * Gyroscope uncalibrated y-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        y: number;\n        /**\n         * Gyroscope uncalibrated z-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        z: number;\n        /**\n         * Gyroscope uncalibrated x-axis offset.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        biasX: number;\n        /**\n         * Gyroscope uncalibrated y-axis offset.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        biasY: number;\n        /**\n         * Gyroscope uncalibrated z-axis offset.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        biasZ: number;\n    }\n    /**\n     * Significant motion sensor event data.\n     * @typedef SignificantMotionResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface SignificantMotionResponse extends Response {\n        /**\n         * The degree of significant motion.\n         * Whether the device has a significant motion.\n         * The value 1 means that the device has a significant motion, and 0 means the opposite.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        scalar: number;\n    }\n    /**\n     * Proximity sensor event data.\n     * @typedef ProximityResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface ProximityResponse extends Response {\n        /**\n         * Indicates the degree of proximity, event 0 indicates proximity, and greater than 0 indicates distance.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        distance: number;\n    }\n    /**\n     * Light sensor event data.\n     * @typedef LightResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface LightResponse extends Response {\n        /**\n         * Indicates light intensity, in lux.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        intensity: number;\n        /**\n         * Indicates color temperature, in kelvin.\n         * @type { ?number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 12\n         */\n        colorTemperature?: number;\n        /**\n         * Indicates infrared luminance, in cd/m2.\n         * @type { ?number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 12\n         */\n        infraredLuminance?: number;\n    }\n    /**\n     * Hall sensor event data.\n     * @typedef HallResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface HallResponse extends Response {\n        /**\n         * Indicates hall status, 0 indicates open, and greater than 0 indicates suction.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        status: number;\n    }\n    /**\n     * Magnetic field sensor event data.\n     * @typedef MagneticFieldResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface MagneticFieldResponse extends Response {\n        /**\n         * Magnetic field x-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        x: number;\n        /**\n         * Magnetic field y-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        y: number;\n        /**\n         * Magnetic field z-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        z: number;\n    }\n    /**\n     * Magnetic field uncalibrated sensor event data.\n     * @typedef MagneticFieldUncalibratedResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface MagneticFieldUncalibratedResponse extends Response {\n        /**\n         * Magnetic field uncalibrated x-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        x: number;\n        /**\n         * Magnetic field uncalibrated y-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        y: number;\n        /**\n         * Magnetic field uncalibrated z-axis component.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        z: number;\n        /**\n         * Magnetic field uncalibrated x-axis offset.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        biasX: number;\n        /**\n         * Magnetic field uncalibrated y-axis offset.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        biasY: number;\n        /**\n         * Magnetic field uncalibrated z-axis offset.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        biasZ: number;\n    }\n    /**\n     * Pedometer sensor event data.\n     * @typedef PedometerResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface PedometerResponse extends Response {\n        /**\n         * Indicates the number of steps.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        steps: number;\n    }\n    /**\n     * Humidity sensor event data.\n     * @typedef HumidityResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface HumidityResponse extends Response {\n        /**\n         * Indicates the number of humidity.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        humidity: number;\n    }\n    /**\n     * Pedometer detection sensor event data.\n     * @typedef PedometerDetectionResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface PedometerDetectionResponse extends Response {\n        /**\n         * Indicates the pedometer detection status, 1 indicates that a walking action has occurred,\n         * and 0 indicates that no movement has occurred.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        scalar: number;\n    }\n    /**\n     * Ambient temperature sensor event data.\n     * @typedef  AmbientTemperatureResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface AmbientTemperatureResponse extends Response {\n        /**\n         * Indicates ambient temperature, in celsius.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        temperature: number;\n    }\n    /**\n     * Barometer sensor event data.\n     * @typedef BarometerResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface BarometerResponse extends Response {\n        /**\n         * Indicates the number of barometer, in hpa.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        pressure: number;\n    }\n    /**\n     * Heart rate sensor event data.\n     * @typedef HeartRateResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface HeartRateResponse extends Response {\n        /**\n         * Indicates the number of heart rate.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        heartRate: number;\n    }\n    /**\n     * Wear detection sensor event data.\n     * @typedef WearDetectionResponse\n     * @syscap SystemCapability.Sensors.Sensor\n     * @since 8\n     */\n    interface WearDetectionResponse extends Response {\n        /**\n         * Indicates the status of wear detection, 1 for wearing, 0 for wearing not.\n         * @type { number }\n         * @syscap SystemCapability.Sensors.Sensor\n         * @since 8\n         */\n        value: number;\n    }\n}\nexport default sensor;\n",
}
export default FILE;